home *** CD-ROM | disk | FTP | other *** search
- Path: erinews.ericsson.se!usenet
- From: Bjorn Fahller <ebcbear@ebc.ericsson.se>
- Newsgroups: comp.lang.c++
- Subject: extending strstream
- Date: Thu, 21 Mar 1996 11:24:41 +0100
- Organization: Ericsson Business Networks AB
- Message-ID: <31512E69.18FE@ebc.ericsson.se>
- NNTP-Posting-Host: ebcw050.ebc.ericsson.se
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (X11; I; HP-UX A.09.05 9000/735)
-
- I need to encapsulate a chunk of memory, with a fixed maximum
- size, that can be read from and written to. My idea is that
- extending the strstream class is a good way to do that, but
- my documentation on how is, at beast, weak.
-
- I must be able to initiate memory objects with a pointer to
- the memory chunk, and the maximum allowed size, plus a size
- that is the actual part of the memory chunk that contains
- valid data right away, and can be read.
-
- How do I go about to do this, or should I create a class of
- my own from scratch?
- _
- /Bjorn.
- --
- Bjorn Fahller Tel: +46 8 4220898 /
- NA/EBC/FNM/T ------------------- ^
- Ericsson Business Networks AB / |
- S-131 89 Stockholm/SWEDEN / Clever quote goes right here --+
-